package com.edu.exam.enums.examination.paper;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 分割任务来源枚举
 */
public enum SegmentationTaskSource implements BaseEnum {
    MANUAL("MANUAL", "手动创建"),
    AUTOMATIC("AUTOMATIC", "自动创建"),
    SCHEDULED("SCHEDULED", "定时任务"),
    TRIGGERED("TRIGGERED", "触发器"),
    BATCH("BATCH", "批量处理"),
    USER_REQUEST("USER_REQUEST", "用户请求"),
    SYSTEM("SYSTEM", "系统"),
    API("API", "API调用"),
    IMPORT("IMPORT", "导入"),
    CONVERSION("CONVERSION", "转换"),
    REPROCESSING("REPROCESSING", "重处理"),
    INTEGRATION("INTEGRATION", "集成"),
    MIGRATION("MIGRATION", "迁移"),
    BACKUP_RESTORE("BACKUP_RESTORE", "备份恢复"),
    TEST("TEST", "测试");

    private final String code;
    private final String description;

    SegmentationTaskSource(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
